-
Home
-
UpsellWP – WooCommerce Upsell and Related Products Offers
-
2.1.6
-
Code
-
Classes
- Cart
Total Complexity |
87 |
Dependencies |
6 |
Dependents |
1 |
Total lines |
256 |
Lines of code |
171 |
Logical lines of code |
92 |
Comment lines |
58 |
Methods |
10 |
Properties |
0 |
Methods 10
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
applyDiscounts() |
C |
44 |
26 |
38 |
addItemText() |
A |
47 |
13 |
31 |
updateItemPrice() |
A |
55 |
9 |
17 |
updateRegularPrice() |
S |
60 |
8 |
12 |
maybeRestoreOtherItems() |
S |
60 |
7 |
12 |
changeCartItemVariant() |
S |
53 |
6 |
21 |
maybeRemoveQuantityInput() |
S |
61 |
6 |
12 |
removeInvalidItems() |
S |
61 |
5 |
12 |
maybeRemoveOtherItems() |
S |
67 |
4 |
7 |
maybeRemoveRemoveLink() |
S |
65 |
3 |
9 |